#ifndef OCATOMIC_H_INCLUDED
#define OCATOMIC_H_INCLUDED

#include <glib.h>

static inline void
oc_atomic_incl     (       gulong   *v      )
{
    __asm__ __volatile__ (
    "lock incl (%0)    \n"
    :
    : "a" ( v )
    );
}

#endif // OCATOMIC_H_INCLUDED
